// @Bind #btnExeTask.onClick
!function() {
	var action = view.get("#ajaxActionExetask");
	action.execute(function(result) {
		dorado.MessageBox.alert(result);
	});
};

// @Bind #datagridIp.onDataRowClick
!function(self) {
	var data = view.get("#datasetpingresult");
	var action = view.get("#ajaxActionPingresult");
	var textHtml = view.get("#htmlContainerText");
	var entity = self.getCurrentItem();
	action.set("parameter", entity.get("ip"));
	data.set("parameter", entity.get("ip"));
	action.execute(function(result) {
		data.flush();
		var ping = data.get("data:#.ping");
		var exeDate = data.get("data:#.exeDate");
		var ip = data.get("data:#.ip");
		textHtml.set("content", "<h2 style='color:#e67e22'>执行命令：ping " + ip
				+ "</h2>" + "<h2 style='color:#3498db'>执行结果:<br>" + ping
				+ "<h2>" + "</br>" + "<h3 style='color:green'>【时间】：" + exeDate
				+ "</h3>");
	});
};